import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import ShowCard from '@/components/ShowCard'
import Mail from '@/components/Mail'
import AddMail from '@/components/AddMail'
import Admin from '@/components/Admin'
import LogIn from '@/components/LogIn'
import ElLogIn from '@/components/ElLogIn'

Vue.use(Router)

var routes = [{
  path: '/',
  name: 'HelloWorld',
  component: HelloWorld
},
{
  path: '/show_card',
  name: 'show_card',
  component: ShowCard
},
{
  path: '/mail/',
  name: 'mail',
  component: Mail
},
{
  path: '/add_mail',
  name: 'add_mail',
  component: AddMail
},
{
  path: '/admin',
  name: 'admin',
  component: Admin
},
{
  path: '/login',
  name: 'login',
  component: LogIn
},

]

export default new Router({
  routes: routes,
  mode: 'history' /*hash*/
})


